package com.example.springboot.controller.responsebodyadvicecontroller;

import com.example.springboot.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:ChenZhangKun
 * @Date: 2024/11/9 20:39
 */
@RestController
public class ResponseBodyAdviceController {

    @GetMapping(value = "/response/body/advice/test")
    public User findUser(){
        User user=new User();
        user.setLastName("czk");
        user.setId(1);
        user.setEmail("qq.com");
        return user;
    }
}
